package com.goodwill.androidtest.evaluate;

import com.google.gson.annotations.JsonAdapter;

import java.util.List;

public class Student {
    private String name;
    @JsonAdapter(CourseDeserializer.class)
    private List<Course> courses;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
//
//    public Course getCourses() {
//        return courses;
//    }
//
//    public void setCourses(Course courses) {
//        this.courses = courses;
//    }


    public List<Course> getCourses() {
        return courses;
    }

    public void setCourses(List<Course> courses) {
        this.courses = courses;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", courses=" + courses +
                '}';
    }
}
